//
//  ViewController.m
//  MainProject
//
//  Created by forms on 2020/5/18.
//  Copyright © 2020 forms. All rights reserved.
//

#import "ViewController.h"
//#import "AViewController.h"
#import <A_Category/CTMediator+A.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view.
    self.title = @"root VC";
//    self.navigationController.navigationBar.translucent = YES;
    [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsCompact];
    self.navigationController.navigationBar.shadowImage = [[UIImage alloc]init];
//    self.view.backgroundColor = [UIColor redColor];
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    AViewController *AV = [[AViewController alloc]init];
//    [self.navigationController pushViewController:AV animated:YES];
    UIViewController *viewController = [[CTMediator sharedInstance] performTarget:@"A" action:@"viewController" params:nil shouldCacheTarget:NO];
//    UIViewController *viewController = [[CTMediator sharedInstance] A_aViewController];
    [self.navigationController pushViewController:viewController animated:YES];

}

@end


